home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ClickNotifier.h
< prev
next >
Wrap
Text File
|
1997-05-04
|
1KB
|
58 lines
/*
* File: ClickNotifier.h
* Function: A behavior that sends a command to an MCommander when its owner
* is clicked.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <1> 5/04/97 JDJ Created (from CClickBehavior in TextTraitsDialog.cpp)
*/
#pragma once
#include <ZBehavior.h>
#include <ZEvent.h>
//-----------------------------------
// Forward References
//
class MCommander;
// ===================================================================================
// class CClickNotifier
// ===================================================================================
class CClickNotifier : public TBehavior<TMouseEvent> {
typedef TBehavior<TMouseEvent> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CClickNotifier();
CClickNotifier(MCommander* notifyee, const string& command);
// Sends command to notifee when owner is clicked.
//-----------------------------------
// TBehavior API
//
protected:
virtual bool OnExecute(TMouseEvent& event);
//-----------------------------------
// Member data
//
protected:
MCommander* mNotify;
string mCommand;
};